package com.jeasonzhao.report.codes;

import com.jeasonzhao.commons.basic.IntegerPair;

public final class ReportShowModes extends IntegerPair
{
    private static final long serialVersionUID = 1L;
    public static final ReportShowModes FreeMode = new ReportShowModes(0,
        "Show Result as soon as possible","normal,free");
    public static final ReportShowModes RestrictedMode = new ReportShowModes(1,
        "Must input parameters before show result",
        "input,param,parameter,parameters,restrict");
    private ReportShowModes(int n,String strName,String strAlias)
    {
        super(n,strName,strAlias);
    }

    public static ReportShowModes fromName(String str)
    {
        return(ReportShowModes) IntegerPair.findConstant(ReportShowModes.class,str,FreeMode);
    }

    public int hashCode()
    {
        return super.hashCode();
    }

}
